import request from '@/router/axios'

export function fetchWxAppointList(query) {
  return request({
    url: '/mp/wxappoint/page',
    method: 'get',
    params: query
  })
}

export function addWxAppointObj(obj) {
  return request({
    url: '/mp/wxappoint',
    method: 'post',
    data: obj
  })
}

export function getWxAppointObj(id) {
  return request({
    url: '/mp/wxappoint/' + id,
    method: 'get'
  })
}

export function delWxAppointObj(id) {
  return request({
    url: '/mp/wxappoint/' + id,
    method: 'delete'
  })
}

export function putWxAppointObj(obj) {
  return request({
    url: '/mp/wxappoint',
    method: 'put',
    data: obj
  })
}
